"""Effcient_OA_System URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from .views import *

urlpatterns = [
    path('admin/', admin.site.urls),
    path('img_code/<str:uuid>',Image.as_view()),# 图片验证码
    path('login',LoginAPIView.as_view()),# 登录
    path('amend_pwd',Amendpwd.as_view()),# 忘记密码
    path('men_bar',MenuBarViews.as_view()),# 菜单
    path('men_bar/<int:pk>',MenuBarAPI.as_view()),
    path('menuvague',MenuVague.as_view()),
    path('numbers',Numbers.as_view()),# 首页
    path('users',UserView.as_view()),# 用户管理
    path('users/<int:pk>',UserAPI.as_view()),
    path('vague',Vague.as_view()),
    path('loginlogs',LoginLogsView.as_view()),# 登录日志
    path('loginlogs/<int:pk>',LoginLogView.as_view()),
    path('operationlog',OperationLogAPIView.as_view()),# 操作日志
    path('operationlog/<int:pk>',OperationLogAPIView.as_view()),
]
